package com.xy.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeUtil {

    private static SimpleDateFormat yearMonthDayFormat = new SimpleDateFormat("yyyyMMdd");

    public static String getYearMonthDay(Date date) {
        if (null == date) {
            return "";
        }
        return yearMonthDayFormat.format(date);
    }
}
